﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CustomerRelation.MoveToStore.aspx.cs"
    Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Quan tri he thong</title>
    <link rel="stylesheet" href="assets/css/reset.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/styleexpress.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/invalid.css" type="text/css" media="screen" />

    <script src="assets/js/Admin_002.js" type="text/javascript"></script>

    <script src="assets/js/Admin.js" type="text/javascript"></script>

    <script src="assets/js/jquery.js" type="text/javascript"></script>

    <script src="assets/js/jquery.validate.js" type="text/javascript"></script>

    <script type='text/javascript' src="assets/js/common.js"></script>

    <style type="text/css">
        .thheader {
            font-weight: bold;
            vertical-align: middle;
            text-align: center;
            font-size: 11px;
            border: 1px solid #ccc !important;
            line-height: 12px !important;
        }

        .tdboder {
            border: none !important;
        }

            .tdboder p {
                padding: 1px !important;
                width: 40px;
                border: 1px solid #ccc !important;
                border-bottom: 1px solid #ccc !important;
            }
    </style>

    <script type="text/javascript">
        function doDelete(ExtID, CustID, Action) {
            if (confirm('Bạn có thực sự muốn xóa?')) {
                window.location.href = "CustomerRelation.Edit.aspx?action=" + Action + "&ID=" + CustID + "&ExtID=" + ExtID;
            }
        }
        function ReloadOpener() {
            var tid = getUrlVars()['tid'];
            window.opener.location.href = 'CustomerRelation.aspx?tid=' + tid;
            window.close();
        }
    </script>

</head>
<body>
    <div id="body-wrapper" style="margin-top: 30px;">
        <h2>
            <%if (Request.QueryString["action"] == "PO")
              {%>
                                    Move to PO
                                    <%}
              else
              { %>
                                    Move to Black List
                                    <%} %>
        </h2>
        <div class="content-box">
            <form id="frmEdit" runat="server" method="post">
                <div class="content-box-header">
                    <h3 style="cursor: s-resize;">Khách hàng:
                        <asp:Label ID="lblCustomerName" runat="server"></asp:Label>
                    </h3>
                    <div class="clear">
                    </div>
                </div>
                <fieldset class="adminform">
                    <!--<legend style="padding-left:0px;"></legend>-->
                    <table width="100%" cellpadding="0" cellspacing="0" style="border-top: 1px solid #CCCCCC;">
                        <tbody>
                            <tr>
                                <td colspan="2">
                                    <em style="color: Red;">
                                        <asp:Label ID="lblError" CssClass="err" runat="server"></asp:Label>
                                    </em>
                                </td>
                            </tr>
                            <tr>
                                <th class="rdStyle_th">Nhập lý do:
                                </th>
                                <td>
                                    <asp:TextBox ID="txtReports" Text="" runat="server" TextMode="MultiLine" Rows="3" Width="100px"></asp:TextBox>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </fieldset>
                <div class="clear">
                </div>
                <div style="margin-top: 5px; width: 100%">
                    <asp:Button ID="btnSave" runat="server" Text="Update" class="button" OnClick="btnSave_Click" />
                    <input type="button" id="Exit" value="Exit" class="button" onclick="ReloadOpener();" />
                </div>
            </form>
        </div>
    </div>

    <script language="javascript">
        var listval = eval("window.opener.document.forms.frmCustomers.txtListCustomerID").value;
        window.document.forms.frmEdit.hidIDLst.value = listval;
    </script>

</body>
</html>
